var express = require('express');
var router = express.Router();
const doctorController = require('../controller/doctorController.js');

// 查询所有的分院集合
// 查询所有的部门集合
router.get('/selectbranch', doctorController.selectbranch);
router.get('/selectdepartment', doctorController.selectdepartment);
// 通过分院查询所有分院的医生
// 通过部门查询所有的医生
router.get('/selectbranchfromdoctor', doctorController.selectbranchfromdoctor);
router.get('/selectdepartmentfromdoctor', doctorController.selectdepartmentfromdoctor);
// 查询全部
router.get('/select', doctorController.select);
router.post('/add', doctorController.add);
router.post('/update', doctorController.update);
router.get('/del', doctorController.del);
// 通过姓名查询
router.get('/selectbyname', doctorController.selectbyname);


module.exports = router;
